package sample.plugin.menu.code;

import android.graphics.drawable.Drawable;
import android.widget.Toast;

import com.rapid.api.framework.domain.menu.BaseDomainMenuAction;
import com.rapid.framework.data.DataHolder;

public class TestMenuAction1 extends BaseDomainMenuAction {
    /**
     * 覆写该方法将会指定菜单的父菜单项ID，当点击父菜单项时才会显示该菜单
     */
    @Override
    public String getParentId() {
        return ID_TOOL;
    }

    @Override
    public String getId() {
        return "test1";
    }

    @Override
    public String getTitle() {
        return "测试1";
    }

    @Override
    public Drawable getIcon() {
        return null;
    }

    @Override
    public void perform(DataHolder dataHolder) {
        Toast.makeText(getActivity(), "测试", Toast.LENGTH_SHORT).show();
    }
}
